package com.qf.service.Impl;

import com.qf.dao.EmpmanagerDao;
import com.qf.dao.Impl.EmpmanagerDaoImpl;
import com.qf.pojo.Empmanager;
import com.qf.service.EmpmanagerService;
import com.qf.utils.Dbutils;
import com.sun.xml.internal.bind.v2.model.core.ID;

public class EmpManagerServiceImpl implements EmpmanagerService {
    EmpmanagerDao empmanagerDao = new EmpmanagerDaoImpl();

    @Override
    public Empmanager login(String username, String parssword) {
        Empmanager select = empmanagerDao.select(username);
        if (select != null) {
            if (select.getPassword().equals(parssword)) {
                return select;
            }
        }
        Dbutils.close();
        return null;
    }
}
